New debug function has been added.