Improved ts list function.