Line search algorithm is configurable