Added plugin functionality.