Update template file with new swapping logic