Handle dependencies