Adding connection timeout