Added aggregate methods including scan.