Embedding data in the viewer