Changed the structure of index.yml, code to read it in correctly