Added _print_table function.