Added ts_iterate()