Implement add, replace, append, prepend cmds.