Works with boundaries