Added setScopes()