Added a filter_by function to the match module