Got basic deadlocking working.