Adding debug code when refuse.