fixed bug - changed to threshold based on log speed instead of speed