Use $plugin instead of $module for 2.7 compatibility