Comply with stream protocol.