importAttachedKeyIfNeeded added.