Add delegate and scope.