Added speed detection