Streamlined pure sequential code, some progress on parallel.