Added option to specify host on command line