Fixed explicit traversal (now works for any order)