Edit line follow function