Fixed a few more bugs relating to the hostname. Have to fix the debug
sich.