Added support for boundary conditions dependent upon the independent variables