The line detection algorithm was added.