Changed name to initNextLinesearch