Added log to file with DEBUG.