Remove duplicatetion of coords.Offset -> index code.