Implement aggregate related methods.