Added thread id to log.