Add debugging to runRemap()