In no particular order:

Get rid of the old DPF() code (maybe make first param of DBGConsole_Msg() selectively print to logfile?)