Further implementation of Expand.