Improved boundary condition support.