Add filters to main function