Added dependency check on getConfig