Made a new API for plugins