Creating the output stream