Added ability to override relay port