Added option to configure host and port