Modified for a shared locking scheme