Made code in ContactsManager more readable.