Added plugin lifecycle calls