Expanded safe_scope