Adding create_duplicate() methods to all Cmd nodes.