Added DebugTBD, and updated read to use it.
Updated write to use DebugTBD
Updated mod to use DebugTBD.