Save scan stats to stateS after the creation of new scan