Modified $rootScope