Base controller.