Renaming according to new line positions.