Added support for replacedict selection.