Add parse_file function