Made sge optional