Added support to pass the gateway ip as a paremeter to the script