Working on event and raw message handling