Each patient will be admitted three times to a clinical research facility. In the meal-and-carbohydrate-announcement visit, patients will eat 3 meals accompanied with a matching insulin bolus (depending on the carbohydrate content of the meal) and glucose levels will be subsequently regulated using dual-hormone closed-loop system. In the meal-announcement visit, patients will eat the 3 same meals but will inject only a partial insulin bolus (not depending on carbohydrate content of the meal) and the remaining needed insulin will be delivered based on glucose sensor excursions as part of closed-loop operation. In the control visit, patients will use conventional pump therapy to regulate glucose levels.