Added a new debug function.