Added the ability to pass in a connection timeout value.