Restore previous behavior and add optional "conn" property to override the options for the connection.