Fix unused function warning, issue #48