Removing unnecessary debugging code