Adding event type to the emit arguments.

Attaching the event type at the end of the emit parameters list.