Flushlogs functionality added.