Moved all debug printing to the control core.