Added auto restart alignment after mask