Modification to generate Reference Index