Modified version for SGC Server