Adds filter option functionality