switch block instead of if statements, added new parsers for SID and UID.
Added some events.