Adjusted the length of the maxium indexes permitted