Replace Scope.ALL with branch scope to reduce memory footprint as there is call to addNodes method