#83 implemented flag in methods that create the logs.