SGP working

In this version the SGP works for the 3 period timeline