Use the $Scopes variable.