Rewrote the event persistence layer to use a bounded queue.