Add when versions to dependency tree