Changed ioMap from short to int