Adding support for copying local variables for copied attributes.
Adding support for copying local variables for copied attributes.