Swapping order of scripts