Moved version to a public function.