Add message handeling system to the TextEngine class.