Would be nice with a docstring even though this is a private function.