Removes unnecessary code used for debugging