Add directory modes.