Now creates both metadata and data.