Use with any stream (Requested by maxogden, proxied by mafintosh)