Update environment