Added functionality with dynamic alterStruct