Added the lock, unlock, and join calls. Need to add code to make them work still. Thread_create might be done?