Use uint8 instead of MessageType
Declare Queue related structs and messages