Added feature of saving dicts