Add in some debugging logging