Added missing debug function.