Added plugin type checking.