Added mode method.