Take into account domain boundary.