Move debug code