Adding opts parameter to Container.copy.