Fix unused function warning, close #39