Queue events in batches
Merge pull request #4 from tristanls/queue-events-in-batches