Saving diagrams