Removing stray puts inside writer.