Changes to allow for angle error analysis