Sets up structure.