Fixed warnings about unused results.