Fixing up the tailing and working on the log checking.