Changed build_command_stream() to be build_command(), so that the stream will be built line by line