Added function to collect structure