Events are now passed as options.

Signed-off-by: Rocky Jaiswal <rocky.jaiswal@gmail.com>