Commented a dead-lock code and improved benchmarking