I think this fixes the data store hanging. Replaced task with thread.