Added configuration of hosts and ports.