Rearrange scripts