Added code showing how to save data in a background thread with MR