How does the bar mechanism work