Added ability to select the hostname to use for TPB