Adding init method to plugins.