Added a function to duplicate an instance with copies of the volumes added.