Generate up and down traversal from NaBL.