I'm starting to write code to stream's negotiation.