Implemented stream in mongo.