Added implementation of GenerateContacts