Removes a bunch of unnecessary puts.