Added debug output to GPIO.