Finished plugin API prototype.