Refactored fingerprint merge method.