Use cached remoteHost variable instead of function for debug