Integrated Wesley struct code