Add logs for debug.