Removed red herring -3 in complexity, added max.attempts as a passable
parameter in ls.ml