Closed-loop nights significantly reduced time spent in hypoglycemia ( P = 0.02 ) and increased the percentage of time spent in the target range of 70-140 mg/dL ( P = 0.003 ) compared with nights when the SAP therapy was used .