Initial implementation of scope.