Fixed bug with detecting correct speed for given temp