Use scope to resolve var roots and avoid shadows