Refactoring to use new SGE base interfaces.