Add multiple event registration
Fix argument passing to event functions