Add timer functionality, app counts down based on the intervals and stops at the end. Create new intervals array to prevent overwriting the original and preventing editing after running.