Some changes for running the script from within vm