Added paramaters to barrier