Added socket timeout to avoid idle times.