Script beginning for EndTime