Revised stream interface.