Added _FlushLogs method