An infusion pump comprising: a pumping mechanism operable to cause fluid flow through tubing connected to the pumping mechanism, the pumping mechanism including a motor and a motor controller for energizing the motor; an air-in-line sensor arranged at a sensing location along the tubing to observe fluid flowing through the tubing, the air-in-line sensor generating a signal indicating whether a volume of fluid observed by the sensor at a given time is air or liquid; a memory module; and a microprocessor connected to the memory module, the pumping mechanism and the air-in-line sensor, wherein the microprocessor is programmable to command the pumping mechanism deliver fluid at a therapy flow rate; characterized in that the memory module stores programming instructions causing the microprocessor to: command the pumping mechanism to deliver a bolus volume of fluid at a bolus flow rate greater than the therapy flow rate in response to signals from the air-in-line sensor indicating an uninterrupted volume of air flowing through the tubing is greater than a predetermined first volume threshold, and to register an air-in-line alarm condition in response to signals from the air-in-line sensor indicating an uninterrupted volume of air flowing through the tubing is greater than a predetermined second volume threshold greater than the first volume threshold. a pumping mechanism operable to cause fluid flow through tubing connected to the pumping mechanism, the pumping mechanism including a motor and a motor controller for energizing the motor; an air-in-line sensor arranged at a sensing location along the tubing to observe fluid flowing through the tubing, the air-in-line sensor generating a signal indicating whether a volume of fluid observed by the sensor at a given time is air or liquid; a memory module; and a microprocessor connected to the memory module, the pumping mechanism and the air-in-line sensor, wherein the microprocessor is programmable to command the pumping mechanism deliver fluid at a therapy flow rate; characterized in that the memory module stores programming instructions causing the microprocessor to: command the pumping mechanism to deliver a bolus volume of fluid at a bolus flow rate greater than the therapy flow rate in response to signals from the air-in-line sensor indicating an uninterrupted volume of air flowing through the tubing is greater than a predetermined first volume threshold, and to register an air-in-line alarm condition in response to signals from the air-in-line sensor indicating an uninterrupted volume of air flowing through the tubing is greater than a predetermined second volume threshold greater than the first volume threshold. command the pumping mechanism to deliver a bolus volume of fluid at a bolus flow rate greater than the therapy flow rate in response to signals from the air-in-line sensor indicating an uninterrupted volume of air flowing through the tubing is greater than a predetermined first volume threshold, and to register an air-in-line alarm condition in response to signals from the air-in-line sensor indicating an uninterrupted volume of air flowing through the tubing is greater than a predetermined second volume threshold greater than the first volume threshold.