Fix array types, use DataWriter