Now add barriers to the programs. Probably not the best way of doing it.