Added support for filtering models with given key-value pairs