Setup main structure