Added a means of determining the OS.