Added digital and analog IO support