Fix step function (barrier)
Add proper random position allocation