Added option to disable spectrum mask