Adding appendtodict.