Figuring out what the optimal delay is