Altered the message types to be a constant for easier use and
understanding.