Added cancellation checking to SynMap.