Change structure dynamically