Added table print function