Added aggregate functions and finished searching runner