Implement SGE environment.