Basic function for removing reversals finished, but not yet tested or
properly documented.