Added get_host function