Updated plugin code to use the specparse interface