Works for non int speeds and speeds 32bit