Whoops, figured out easier / faster implementation of barrier