Added support for relays connected via GPIO pins.