Adds scope param in case window is not defined.
Specifies `walk` method.