Minor ref gen tweaks.