Changed interface to receive local scope from controller.