Change Mutex to RWMutex