Reordering dependencies.