Fix auto-commit issues with multi-threading
Merge pull request #29 from mahendra/threading

Fix auto-commit issues with multi-threading