Add state change dependency