Save scan statistics to stateS