Added functionality for adding contacts.