Changing puts commands to print commands in the ERROR and WARN outputs