Updated index to output filepath