Save also code of event