Use functions to filter items instead of key value pairs