Compiles.
Structure working, scalars missing.
Artificially data works
Seems to work!
Mem leak fixed.