Added possibility to filter with object.