Set up metadata for reading