Added function to add contacts from an external action