Add script for 'dispersion.stats' function