1. Add option to control the stream id generation
2. Support for bytesWritten and messageBytesWritten