Added tablePrint debug function