Added Trackbar, improved speed calculation