Added some new functions to my linked lists, and some mutexes on my globals to prevent race conditions.