Refactor dependency system. Setup fetching for dependency check.