Added natural boundary conditions