Prepare documents