Use $plugin and $page by reference.