Add utility to swap files