Debug update. I like this way of storing the messages, but can i generate this programmatically?