Fix unused result warnings. Issue #22