calculate_bad_strips process
Minor fixes