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