Redefined lock.