Script for delay distribution and plotting close #5