Author contributions
A.D., C.K.B. and R.H. co-designed the study. A.D., C.K.B., M.N. and S.H. were responsible for screening and enrollment of participants, arranged informed consent from the participants and provided patient care. A.C. coordinated the study. R.H. designed and implemented the glucose controller. A.D., C.K.B., M.E.W. and R.H. undertook data analysis. A.D., C.K.B., M.N., M.L.E. and R.H. contributed to the interpretation of the results. A.D. and C.K.B. wrote the report. All authors critically reviewed the manuscript. A.D., C.K.B. and R.H. had full access to all of the data in the study and take responsibility for the integrity of the data and the accuracy of the data and analyses, and for the adherence of the trial to the protocol.