Implemented part of the context menus.