Require app utils.
Swap funtions to calculate total cost.