Add support to export an identity.