Compiles and most tests pass.