Is this function needed outside the tests?