Implement `walk` function