NDA prevents significant detail from being included here.
TODO: seperate library and CLI, create actual (non-fork) ruby extension.