At some point this function should be pulled out into amoeba, I think. But it doesn't have to be now.