Debugged swap