Moved the running of filters into its own method.