Handle dependencies between steps