Simplified swapfix script.