Set up controller