Removing extraneous code and output.