Scope as proc