Clearing away unnecessary debug code