Handle gather environment