Update sgcraft.php