Incorporate extended-join support, and add config setting to toggle debug messages.