Preliminary code for event editor.