Add option to mask certain high frequency events (bug #3707)