Support NUM_RESULTS in config