Implement dependency analysis.