Script updated to pass command line args using $@