Added definition for followLine()