Script updated so that values in for/if are dynamically assigned based upon array size.
Delay method slightly modified, and the ability to profile the average delay between buckets added.