Removed some calls to LOCK.