Wrote make_command_stream and read_command_stream