Added the `:from_file` parameter to `generate_hex_name`