List threads API improvement.