Detect version.