Added port of brushie's ioio code.