Add resource controller.