Added tableize() function