Use seq API instead of explicit list API for traversal.