Adds an option to enable adaptive-last-n.