Set up background thread which will handle file io