Update to lib version 3, because API has changed.