Small kernel updates. Improved boundary conditions.