Adds barrier sync hack to replace println hack.