Removed use of external debug functions.