Added smart allocation across 3 levels.