Add pre/post filtering for records