Use the previousState from the parameter bag.