Add a debugging function and another completion flag.