Changed Stream to DuplexStreamInterface on constructor.