Swap some lines of code