Added aggragate function
(for grouping by some parameter, useful for getting scrolls in groups by user)