Fixed the mutex to make it more readable.