Added function to print the table to log.