Added ability to set custom host.