Resource controller