Added safe Unity threading script to make running operations in the background easy