Added host lookup and moved config to cmdline args