In particular it would be useful if `frequencies` was a bit more wary of bringing all intermediate results to one node.