Buffer the output streams for increased performance (not really needed here but useful for showing best practices)