Add message details and fix JSON storage feor messages.