Add dependency check