Add possibility to set connection timeout