Added ability to set global hostname