Added table output function