Added maximum paging when getting events