Added missing addContactToList function