Adding more debugging routines.