How do I get rid of this (routine)