Changed RLock to Lock