Slightly refactored walk engine with better variable names.