Renamed bar_fn to bar_fn_vertical