Modified DeadLock.php