Remove extraneous print lines