Changed case linking from databases intp original folder to conditional.