Fix 80-col and early exit in cost model