Updated logic to account for website scope, instead of store scope.