Added CostController functionality.