added event grouping and getting of 10 at a time