Adds the ability to output to a stream