Added test script.
Added separate utility calculations.