Reordered code to make the use of values closer to their assignment
Reordered code to make the use of values closer to their assignment

xesscorp/KiCost,hildogjr/KiCost,hildogjr/KiCost,xesscorp/KiCost,hildogjr/KiCost,xesscorp/KiCost