Adding a connection timeout