Compiles, basic memory management seems okay.