Add document and undefined