Alternate main filter function