Simplify code, stop wiping the log on every run.