Added API

Now other plugins can use this plugin