Added optional connection parameters.