Implement barrier.