Speed variable now works