Changed the reading of data to occur before the thread is spawned.
Removes any chance that thread progresses before all data is loaded.