Added a deadlock