Improved the traversal step handling with new "rule" object.