Setting up resources controller.