Refactor interface to use tagged dicts.  Accumulate results on browser side.