Moved code which should operate on all meta menus.
Renaming variable.