Altered index to proper file-type