Changed dan to write out file names with match