Pass $plugin by reference.