Added support for select() and where() to streams.