Extract from file to structs