Add limit to filter functions