Added encoders for stream API.