Contacts, groups and some refactoring of the bash script.