Changed IRIndex from a uint to an int.