Fixed relayhost code