WIP: Debugging routines.