And this function also lacks test coverage.