Fixed order of printing for debug mode