Adding support for procs in menus