I would add this only if debug is enabled... to avoid proliferation of resources.