Changed syntax to follow QGIS 2.0 guidelines