Main check method.