Implemented the ghost pattern to have documents not initialized.