Updated full deployment script and made global vars