Change to allow file to be passed by pathnamehash