Inspired by tomivirkki/cdiutils-addressbook