Added bar scaling and stacking.