Removed useless array copying.