Added code for plugin loaded