Add events.

Signed-off-by: katlogic <kat@lua.cz>