Removes debug code