Fix possible unused function warnings