Added function to save parsed data