A method of controlling an insulin infusion device comprises operating a processor architecture comprising at least one processor device to calculate a maximum insulin infusion rate for the user based on a fasting blood glucose value associated with the user, a total daily insulin value associated with the user, and fasting insulin delivery data that is indicative of insulin delivered to the user during a fasting period, wherein the maximum insulin infusion rate is applicable during a period of closed-loop operation of the insulin infusion device; obtaining a first closed-loop insulin infusion rate for the user, wherein the first closed- loop insulin infusion rate is obtained for a current sampling point during the period of closed- loop operation; and providing a second closed-loop insulin infusion rate for the user when the obtained first closed-loop insulin infusion rate is greater than the calculated maximum insulin infusion rate, wherein the second closed-loop insulin infusion rate is less than the first closed-loop insulin infusion rate; the first closed-loop insulin infusion rate is calculated in accordance with a proportional-integral-derivative insulin feedback (PID-IFB) control algorithm; and inhibiting windup of an integral component of the PID-IFB control algorithm when the obtained first closed-loop insulin infusion rate is greater than the calculated maximum insulin infusion rate.