Change the file structure and parameters to the dict.