Could you add some unit-tests for this private function? It would make it easier do understand and check how it works.