Using ReferenceMap to avoid catching errors.