Remove unused private fuantions