Added cooler for loop with ranges