Filtering now done on mongodb query.