Added use of output setting for cloning.