Updates to environment procedure