Add OS version function.