The invention relates to the use of a compound of Formula (I) or a salt, solvate or prodrug thereof, wherein R1, R2, R3, n and m are as described in the specification, in the preparation of a medicament for the treatment or prevention of a disease condition mediated through glucokinase (GLK), such as type 2 diabetes.