Added debug statement hook.