Fix build, also insert logged lines to the end.