Adds scopes feature

Implements #28