Added possibility to filter the InMemorySource