Managing type 2 diabetes