Added calcIndex functionality