Fix unused function compiler warning