Add line search.