High blood sugars increase the risk of complications and death in diabetic patients admitted to the hospital. Recent studies hve shown that strict blood sugar control with intravenous (IV) insulin lowers the risk of such complications and death in the ICU. Several insulin infusion protocols have been reported in the literature, but it is not known which is the best. These protocols use tables and formulas that may be confusing and difficult to follow. To facilitate patient care, insulin protocols could be placed on a computer and used at the patient's bedside to direct the nursing staff administering the IV insulin. The Glucommander is one of such computer-derived insulin infusion protocol which has been used successfully in patients with diabetes since 1984. We hypothesize that management of inpatient hyperglycemia with a computer-guided intravenous infusion protocol will facilitate smoother glycemic control with a lower rate of low blood sugars than treatment following a standard insulin infusion algorithm in the medical intensive care unit. We will aim to determine differences in glycemic control between treatment with a computer-guided intravenous infusion protocol (Glucommander) and a standard insulin infusion algorithm in critically ill patients in the ICU.