Added class for payload header, enum for message type