Update to current QGIS API