Add input.
Add "export state" menu entry.