Added support for stream_error