Mostly working, except for scopes