Main structure setup