Changed index function name