Extract debug into independence module.