Modified block callback for walk