Added Calculate LamdaG section of calc_Sdelta function