Set max events limit