Fixed data copy. Improved performance.