Added SGE hack changes