Converted Message protocol to a header file.