Deletes debugging PUTS and minor modifications