Added dependency check