Added aggregate and all method.