Adding all the scopes code