Why this loop only do logging?
When contactId will be 0?