Also made all event type values as hexadecimal (mixing decimal, hexa and char values is a nice way to make mistakes)!