Add logging package. Handle flush prompts.