Adding an addRow() function to systematically add rows to the table of messages.