Initialising with index file