These uninitialized arrays were causing a lot of numerical errors.