Removes printlines and debug mode stuff