Creating the main index