Add dependancy analysis