Wrote scripts and restructured q6.