Removing unnecessary puts statements