Persist code on save.