Add more state to base_stream.
Use the right stream attachment method.