I surfaced this function to be able to test it.