Changed how errors are stored