Added an .apply method to AccumDict