This doesn't seem right. If `options.progress_mode` is true, but `options.calc_relatives` is false, `valp` should still be None.