added counter to update ip list only every 10 seconds