Script enhancements

Keep track of expected execution time.
addDelay