Implemented NL algorithm selection