Prepared main stucture.