Added possibility to modify existing event.