Custom function supportfor MenuItems