Made GpioHandler more general