Now prints out message types approximately correctly.