Changed the change_filename function to use file_hash function