Added a API for the plugins