DebugLog: Added function for debug logging