Changed file list to set because replace wasn't working right