Creating controller.