Add boundary condition checking