Slightly change mergeFiles