Added two boolean options for record filters.
Added functionality to allow users to implement functions to be used as predicates.