Add version declaration detection.