Change dest input to prefix, add debug level logging.