Added "printf" debug capability with inter-task safeguards in place.