Speed cap added and fixed bug on debug transitions