Changed motionData to an array.