Bug fix---forgot to initialize structure with result.