Add regression traverse function