Added plugin numbering and passing to plugins.