Implement SGE.