Add namedtuple for recording errors.
Check for reserved names.