Re-arranging scripts