Is this function actually used outside of tests?