Append to log; Rewrite cfg