Pass correct params to plugins

Let me know if you think this needs changing at all!