Replaced setScopes() with setAccessType()