Adjusted to use upper case x for filter state.