Added option to pass base domain via command line argument