Got rid of unneeded put statements.