Added the spec for scope.
Added the ability to resove shared instances.