sync code cleanup, more accurate stats
Merge pull request #12 from deepak-srivastava/queue-sync

sync code cleanup, more accurate stats