Some changes to script that allows to tkae in command line arguements for the instance tag