Added a messageHandler for better chat formatting