Added functionality for stopping the bars