Added possibility to clear all pending events