Added plugin functions