Re-thought how I was generating the filter functions.