Added Deadlock detection, Producer consumer etc