Replace some debugging