Add scope to nodes