Add domain barrier function,