Starting on implementing check state change api.