Moving lines at the end of file -refs #7236