Added logout, discoverHost