Generalised the context menu.