added simple avg script