Simplied S2.gr.
Finish S1.gr.
Remove tmp files.