Implemented multi-level expand.