#516- Moving away from using $rootScope.