Format the messages