Switch up plugin API to be more friendly.