Initial code for finding and building dependency areas