In basal-bolus therapy, a longer-acting insulin (or a continuous subcutaneous infusion of rapid-acting insulin delivered by a pump) is used to simulate basal insulin production that suppresses hepatic glucose production, especially in the fasting state, and a shorter-acting insulin is used before meals to control postprandial glucose excursions.