Added plugin initialization function