Adds SendDebug and more fixes.