Adding some debug hooks.