Updated the timer and save at every mask change