Save diagram is functional