Added basic logging to System.Diagnostics.Debug