Added utility check_filter which checks for filter and exit(0)