Removes unneeded printing.