Compiled and prelim finish of part 1, yet to be fully stress tested