Removed our custom debugging routines in favour of debug module.