Added filter class that implements state variable filter.