[LOG] Adding some debug log.
[CHANGE] Make debugLog thread Safe.
[LOG] Better logging.