Adds a state filter