Added support for event cutoff and limit in the events widget.