I wonder if it should be <= the lower boundary but < the upper boundary,
because, for contiguous bounds, we don't want to be in two cells at once.