Collect data to data structures.