Fix unused function warning