Refactor export code into a new module.
Fix a couple of serialization bugs.
Fix logic short-circuit bug!
Make op logging less verbose.