Fix bugs and now save statistics for time thresholded frames
Fix bugs and now save statistics for time thresholded frames