Swap script