#83 implemented flag in methods that update the logs.