Improving printing to table