Added new code to index file