Remove main debug code