Lambda should be MAX_PAIRS parameters long.