Costoptimization Issues fixed.