Adding proper file extensions