Added some front-end behavior for computing aggregations.