Improved resource controller