Add depenedncy analysis and undeclared deps