Made event buffer sizes configurable