Added handling for interaction count