Added onChangeGpioState()