Added --timeout option to set timeout for connection phase