Fix timeout for slow connections (Thanks @homeway)