Added average size calc and fixed stochastic bar