Changed index to main index