Add barrier control