Added filter generation function to QueryMapper object