First draft of SGE support.