Added systematic loops to scripts