Framework for expand command.