Set environment.