Updated environment method and hotfixed deploy revision issues.