This is not entirely new code as it's just an adaptation of a code snippet posted on the site for the old scripting setup. Essentially, it's starts some timers at init time and announces the time remaining at 20, 10, 5 and 1 minutes left.