Added get_os function.