Make max variants to variable