Add method of turning flag data into a file, for future use.