Working on methods from ReentrantLock.