Added an easy-to-use barrier call, which internally uses a