Unexport this function since it's only meant to be used internally.