Metformin is used for treating type 2 diabetes.