Fixed a problem with the shared data area, moving on to switching threads.