Copied from the previous implementation, I did no optimizations for e-mail matching yet