Foundations of Cost Control