Adding saving to updateSGP