Added a better replacement scheme for the hash value in the file name.