Changes to save file as a hashmap