Add checks to avoid running alternatives constantly