Added willChangeState delegate method.