Used GCD to prepare document after app launch