Append the row to a log CSV table after cycling the tables.
This keeps more data and permits a delete-last appended record to be implemented.

Also use a utility function to detect end of message wait.