Added msg.data array copying support