Add support for watch() and config reload.