Wait for preferences to be ready before adding documents