Used iteration instead of recursion in table-columns