updating logic for capturing speed. Value displays currently, but sample count doesn't seem correct