Implemented stream length and position.