Made logging clear correctly on each run