The present invention relates to compounds of formula (I) wherein R<1>, R<2>, R<3> and R<4> are as defined in claim 1 and pharmaceutically acceptable salts thereof. The compounds are glucokinase activators which increase insulin secretion in the treatment of type II diabetes.