Adding debug logging to PHT