Rearranging scripts